<script>
	KindEditor.ready(function(K) {
		var editor1 = K.create('textarea[name="content1"]', {
			cssPath: '../plugins/code/prettify.css',
			uploadJson: '../php/upload_json.php',
			fileManagerJson: '../php/file_manager_json.php',
			allowFileManager: true,
			afterCreate: function() {
				var self = this;
				K.ctrl(document, 13, function() {
					self.sync();
					K('form[name=example]')[0].submit();
				});
				K.ctrl(self.edit.doc, 13, function() {
					self.sync();
					K('form[name=example]')[0].submit();
				});
			}
		});
		prettyPrint();
	});
</script>

<div id="urHere">DouPHP 管理中心<b>></b><strong>修改资讯</strong> </div>
<div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
	<h3><a href="{:u('index')}" class="actionBtn">资讯列表</a>修改资讯</h3>
	<form action="{:u('modNews')}" method="post" enctype="multipart/form-data">
		<input type="hidden" name="news_id" value="{$data['news_id']}">
		<table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
			<tr>
				<td width="90" align="right">咨询标题</td>
				<td>
					<input type="text" name="news_tittle" value="{$data['news_tittle']}" size="80" class="inpMain" />
					<span class="error">{$errData['news_tittle']}</span>
				</td>
			</tr>
			<tr>
				<td align="right" valign="top">资讯内容</td>
				<td>
					<textarea name="news_content" style="width:700px;height:200px;">
						{$data['news_content']}
        </textarea>
					<!--<textarea id="content" name="act_decribe" style="width:780px;height:400px;" class="textArea"></textarea>-->
					<span class="error">{$errData['news_content']}</span>
				</td>
			</tr>
			<tr>
				<td align="right">资讯类型</td>
				<td>
					<select name="news_type" id="">
						<option value="">--资讯类型--</option>
						<option value="1" <if condition="$data['news_type'] eq 1"> selected="selected" </if>>代练服务</option>
						<option value="2" <if condition="$data['news_type'] eq 2"> selected="selected" </if>>寄售交易</option>
						<option value="3" <if condition="$data['news_type'] eq 3"> selected="selected" </if>>账号交易</option>
						<option value="4" <if condition="$data['news_type'] eq 4"> selected="selected" </if>>其他服务</option>
					</select>
					<span class="error">{$errData['news_type']}</span>
			</tr>
			<tr>
				<td align="right">发布作者</td>
				<td>
					<input type="text" name="news_author" value="{$data['news_author']}" size="50" class="inpMain" />
					<span class="error">{$errData['news_author']}</span>
				</td>
			</tr>

			<tr>
				<td></td>
				<td>
					<input type="hidden" name="token" value="7e4a88fb" />
					<input type="hidden" name="image" value="">
					<input type="hidden" name="id" value="">
					<button type="submit" name="button" class="btn">提 交</button>
				</td>
			</tr>
		</table>
	</form>
</div>

<script type="text/javascript">
	function douAction() {
		var frm = document.forms['action'];

		frm.elements['new_cat_id'].style.display = frm.elements['action'].value == 'category_move' ? '' : 'none';
	}
</script>

<script type="text/javascript">
	var _hmt = _hmt || [];
	(function() {
		var hm = document.createElement("script");
		hm.src = "//hm.baidu.com/hm.js?cc58f09bfb6ccacac51c4e5d7787d7d0";
		var s = document.getElementsByTagName("script")[0];
		s.parentNode.insertBefore(hm, s);
	})();
</script>